package com.why.service.impl;

import com.why.entity.Dic;
import com.why.mapper.DicMapper;
import com.why.service.IDicService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hy-woo
 * @since 2022-06-07
 */
@Service
public class DicServiceImpl extends ServiceImpl<DicMapper, Dic> implements IDicService {

    @Autowired
    DicMapper dicMapper;

    @Override
    public List<Dic> dicListByType(int type) {
        return dicMapper.dicListByType(type);
    }
}
